home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / comunic / boyan51a.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-11-15  |  4KB  |  97 lines

  1. echo off
  2. break on
  3. cls
  4. echo ╒════════════════════════════════════════════════════╕
  5. echo │           BOYAN 5.1 - EASY INSTALLATION            │
  6. echo │                                                    │
  7. echo │   This batch file will assist you in setting up    │
  8. echo │   the BOYAN files on your disk drive.              │
  9. if exist pkunzip.exe goto 5
  10. echo │   It uses Phil Katz's PKUNZIP to extract the files.│
  11. :5
  12. if exist boyan51a.zip goto 10
  13. echo ├────────────────────────────────────────────────────┤
  14. echo │   BOYAN51A.ZIP was not found in the directory.     │
  15. echo │   Please change into the directory containing      │
  16. echo │   the BOYAN51A.ZIP file, then re-run INSTALL.      │
  17. goto 60
  18. :10
  19. if (%1)==() goto 30
  20. if exist .\boyan51a.zip goto 20
  21. echo ├────────────────────────────────────────────────────┤
  22. echo │   The INSTALL.BAT program is designed to work      │
  23. echo │   with DOS versions 3.0 and higher.  The version   │
  24. echo │   of DOS you are using is:                         ┘
  25. ver
  26. echo ├────────────────────────────────────────────────────┐
  27. echo │   So you need to install BOYAN manually.  You      │
  28. echo │   can do this by simply issuing the commands:      ┘
  29. echo │      PKUNZIP BOYAN51A %1
  30. echo │      PKUNZIP BOYAN51B %1
  31. echo │   This will unpack all of the BOYAN files          ┐
  32. echo │   into the directory you specified.                │
  33. goto 60
  34. :20
  35. echo ├────────────────────────────────────────────────────┘
  36. echo │   BOYAN will be installed in directory:  %1\
  37. pkunzip -o BOYAN51A %1 needfree.exe install#.bat > nul
  38. if exist %1\install#.bat goto 40
  39. echo │        (Creating new subdirectory...)
  40. pkunzip -d -o BOYAN51A %1 needfree.exe install#.bat > nul
  41. if exist %1\install#.bat goto 40
  42. echo │   An error occurred in writing to that directory!  ┐
  43. echo │   Either you specified an invalid directory name,  │
  44. echo │   or your disk is write-protected.                 │
  45. :30
  46. echo ├────────────────────────────────────────────────────┤
  47. echo │   To use INSTALL, you must specify a drive and     │
  48. echo │   path where the BOYAN program files will reside.  │
  49. echo │                                                    │
  50. echo │   For example, to install BOYAN onto a new disk    │
  51. echo │   in drive "B", you would type:                    │
  52. echo │         INSTALL B:                                 │
  53. echo │              (No backslash after the semicolon!)   │
  54. echo │                                                    │
  55. echo │   Similarly, to install BOYAN into a directory     │
  56. echo │   path named "BOY5" on hard drive "C", type:       │
  57. echo │         INSTALL C:\BOY5                            │
  58. echo ├────────────────────────────────────────────────────┤
  59. echo │   Now, run this batch file using the command,      │
  60. echo │     INSTALL drive:\path                            │
  61. echo │   specifying the destination for BOYAN 5.1 files.  │
  62. goto 60
  63. :40
  64. %1\needfree %1 580
  65. if not errorlevel 2 goto 50
  66. echo │
  67. echo │ SPECIAL INSTRUCTIONS FOR FLOPPY DISK INSTALLATION! ┐
  68. echo │                                                    │
  69. %1\needfree %1 338
  70. if not errorlevel 1 goto 45
  71. echo │  The disk currently in drive %1 does not have      │
  72. echo │  enough free space!  Please prepare two blank      │
  73. echo │  formatted diskettes and insert one of them into   │
  74. echo │  drive %1.  THEN, re-run "INSTALL %1" .            │
  75. goto 60
  76. :45
  77. echo │  1. Remove the disk that is currently in drive %1  │
  78. echo │     and label it "SCRIPTS & PROTOCOLS".  Set this  │
  79. echo │     disk aside for later.                          │
  80. echo │  2. Insert a newly-formatted diskette labelled     │
  81. echo │     "BOYAN PROGRAM" into drive %1.                 │
  82. echo │                                                    │
  83. echo │  » Press [space] after inserting the new disk,  «  │
  84. echo │  » or [Ctrl-Break] if you need to format disks. «  ┘
  85. pause > nul
  86. pkunzip -o BOYAN51A %1 install#.bat > nul
  87. %1\install# %1 floppy
  88. :50
  89. if not errorlevel 1 %1\install# %1 hard
  90. echo │   The directory does not have enough free space!   │
  91. echo │   At least 600 K should be available on the disk.  │
  92. echo │                                                    │
  93. echo │   Please insert a disk with sufficient free space  │
  94. echo │   for BOYAN; then re-run INSTALL.                  │
  95. :60
  96. echo ╘════════════════════════════════════════════════════╛
  97.